/**
 * LogInitializerBean
 *
 * @author Chris Pratt
 *
 * 2/13/2012
 */
package com.anodyzed.onyx.log;

import org.slf4j.bridge.SLF4JBridgeHandler;

public class LogInitializerBean {

  /**
   * Constructor
   *
   * @param factory The Log Factory to install
   */
  public LogInitializerBean (LogFactory factory) {
    LogBuilder.setLogFactory(factory);
  } //LogInitializerBean

  /**
   * Initialize the java.util.logging Bridge
   *
   * @param on true to initialize
   */
  public void setBridgeJavaLogging (boolean on) {
    if(on) {
      SLF4JBridgeHandler.install();
    }
  } //setBridgeJavaLogging

} //*LogInitializerBean
